import {RouteRecordRaw} from 'vue-router'
import {FlowEnum} from '@/enums/pageEnum'

const importPath = {
    // @ts-ignore
    [FlowEnum.FLOW_HOME_NAME]: () => import('@/vue2-flow/src/views/flow/index.vue')
}

const flowRoutes: RouteRecordRaw = {
    path: FlowEnum.FLOW_HOME,
    name: FlowEnum.FLOW_HOME_NAME,
    component: importPath[FlowEnum.FLOW_HOME_NAME],
    meta: {
        title: '流程开发',
        isRoot: true
    }
}

export default flowRoutes
